package com.greenold.Appointment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.greenold.common.annotation.Excel;
import com.greenold.common.core.domain.BaseEntity;

/**
 * 预约登记对象 appointment
 * 
 * @author ruoyi
 * @date 2025-10-13
 */
public class Appointment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @Excel(name = "序号")
    private String id;

    /** 预约类型（0：参观预约，1：探访预约） */
    @Excel(name = "预约类型", readConverterExp = "0=参观预约，1=探访预约")
    private String appointmentType;

    /** 预约人姓名 */
    @Excel(name = "预约人姓名")
    private String name;

    /** 预约人手机号 */
    @Excel(name = "预约人手机号")
    private String mobile;

    /** 老人id（可选） */
    @Excel(name = "老人id", readConverterExp = "可选")
    private String elderId;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appointmentTime;

    /** 创建人 */
    @Excel(name = "创建人")
    private String extend1;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 预约状态（0=待上门，1=已完成，2=已取消，3=已过期） */
    @Excel(name = "预约状态", readConverterExp = "0=待上门，1=已完成，2=已取消，3=已过期")
    private String status;

    /** 操作 */
    @Excel(name = "操作")
    private String extend2;

    /** $column.columnComment */
    private Date updatedAt;

    /** $column.columnComment */
    private String createdBy;

    /** $column.columnComment */
    private String updatedBy;

    /** 到访状态（0未到访，1已到访） */
    private String visitStatus;
    /** 老人姓名 */
    @Excel(name = "老人姓名")
    private String elderName;
    public void setElderName(String elderName)
    {
        this.elderName = elderName;
    }

    public String getElderName()
    {
        return elderName;
    }

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setAppointmentType(String appointmentType)
    {
        this.appointmentType = appointmentType;
    }

    public String getAppointmentType()
    {
        return appointmentType;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }

    public void setElderId(String elderId) 
    {
        this.elderId = elderId;
    }

    public String getElderId() 
    {
        return elderId;
    }

    public void setAppointmentTime(Date appointmentTime) 
    {
        this.appointmentTime = appointmentTime;
    }

    public Date getAppointmentTime() 
    {
        return appointmentTime;
    }

    public void setExtend1(String extend1) 
    {
        this.extend1 = extend1;
    }

    public String getExtend1() 
    {
        return extend1;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setExtend2(String extend2) 
    {
        this.extend2 = extend2;
    }

    public String getExtend2() 
    {
        return extend2;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }

    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }

    public void setVisitStatus(String visitStatus) 
    {
        this.visitStatus = visitStatus;
    }

    public String getVisitStatus() 
    {
        return visitStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appointmentType", getAppointmentType())
            .append("name", getName())
            .append("mobile", getMobile())
            .append("elderId", getElderId())
            .append("appointmentTime", getAppointmentTime())
            .append("extend1", getExtend1())
            .append("createdAt", getCreatedAt())
            .append("status", getStatus())
            .append("extend2", getExtend2())
            .append("updatedAt", getUpdatedAt())
            .append("createdBy", getCreatedBy())
            .append("updatedBy", getUpdatedBy())
            .append("visitStatus", getVisitStatus())
            .append("remark", getRemark())
            .toString();
    }
}
